package com.sifang.sfuserservice.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * log数据库实体
 */
@Data
@Builder
@TableName("user")
public class UserEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id 用户id
     */
    @TableId(type = IdType.INPUT)
    private Long id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 注册时间
     */
    private LocalDateTime registerTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新用户
     */
    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
